<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<link rel="stylesheet" href="__STATIC__/admin/css/font.css">
<link rel="stylesheet" href="__STATIC__/admin/css/xadmin.css">
<script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
<script src="__STATIC__/admin/lib/layui/layui.js" charset="utf-8"></script>
<script type="text/javascript" src="__STATIC__/admin/js/xadmin.js"></script>
<script type="text/javascript" src="__STATIC__/admin/js/ykp.js"></script>
<script type="text/javascript" src="__STATIC__/admin/js/public.js"></script>
<div class="x-body">
    <div class="layui-tab-content">

            <table class="layui-table">
                <thead>
                <tr>
                    <th>ID</th>
                    <th>省份</th>
                    <th>城市</th>
                    <th>代理商姓名</th>
                    <th>代理商电话</th>
                    <th>开始代理时间</th>
                    <th>代理商法人</th>
                    <th>代理商公司名称</th>
                    <th>代理商地址</th>
                    <th>代理商身份证号码</th>
                    <th>担保人姓名</th>
                    <th>担保人身份证号码</th>
                </tr>
                </thead>
                <tbody class="tr-data">
                {volist name="user" id="vo"}
                <tr>
                    <td>{$vo.uid}</td>
                    <td>{$vo.province}</td>
                    <td>{$vo.city}</td>
                    <td>{$vo.true_name}</td>
                    <td>{$vo.mobile}</td>
                    <td>{$vo.act_start_time|date="Y/m/d",###}</td>
                    <td>{$vo.legal_person}</td>
                    <td>{$vo.company_name}</td>
                    <td>{$vo.address}</td>
                    <td>{$vo.id_card_num}</td>
                    <td>{$vo.secure_name}</td>
                    <td>{$vo.secure_id_card_num}</td>
                </tr>
                {/volist}
                </tbody>
            </table>

        <div class="page">
            {$user->render()}
        </div>
    </div>
    {include file="public/_footer" /}
    <script>
        layui.use('laydate', function () {
            var laydate = layui.laydate;

            //执行一个laydate实例
            laydate.render({
                elem: '#start' //指定元素
            });

            //执行一个laydate实例
            laydate.render({
                elem: '#end' //指定元素
            });
        });

        /*用户-停用*/
        function member_stop(obj, id) {
            layer.confirm('确认要停用吗？', function (index) {

                if ($(obj).attr('title') == '启用') {

                    //发异步把用户状态进行更改
                    $(obj).attr('title', '停用')
                    $(obj).find('i').html('&#xe62f;');

                    $(obj).parents("tr").find(".td-status").find('span').addClass('layui-btn-disabled').html('已停用');
                    layer.msg('已停用!', {icon: 5, time: 1000});

                } else {
                    $(obj).attr('title', '启用')
                    $(obj).find('i').html('&#xe601;');

                    $(obj).parents("tr").find(".td-status").find('span').removeClass('layui-btn-disabled').html('已启用');
                    layer.msg('已启用!', {icon: 5, time: 1000});
                }

            });
        }

        layui.use(['form', 'layer'], function () {
            $ = layui.jquery;
            var form = layui.form
                    , layer = layui.layer;
            var util = layui.util;


        });

        //城际联动
        var SCOPE = {
            "city_url": "{:url('admin/Advertuser/getCity')}",
        };
    </script>
    <script>var _hmt = _hmt || [];
    (function () {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
    })();</script>
    </body>

    </html>